package com.sf.fy.uav.user.entity;

import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 *
 * </p>
 *
 * @author LTQ
 * @since 2023-08-24
 */
@TableName("reward_bill")
@ApiModel(value = "RewardBill对象", description = "")
public class RewardBill implements Serializable {

    private static final long serialVersionUID = 1L;

    private String id;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("更新时间")
    private Date updateTime;

    @ApiModelProperty("订单编号")
    private String tcWaybillNo;

    @ApiModelProperty("交易类型 1收入2提现")
    private Integer type;

    @ApiModelProperty("奖励类型 0, \"成交奖励,即推广奖励\"")
    private Integer rewardType;

    @ApiModelProperty("奖励金额")
    private BigDecimal pricePaid;

    @ApiModelProperty("余额")
    private BigDecimal balance;

    private String userId;

    private String externalNumber;


    public String getExternalNumber() {
        return externalNumber;
    }

    public void setExternalNumber(String externalNumber) {
        this.externalNumber = externalNumber;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getTcWaybillNo() {
        return tcWaybillNo;
    }

    public void setTcWaybillNo(String tcWaybillNo) {
        this.tcWaybillNo = tcWaybillNo;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getRewardType() {
        return rewardType;
    }

    public void setRewardType(Integer rewardType) {
        this.rewardType = rewardType;
    }

    public BigDecimal getPricePaid() {
        return pricePaid;
    }

    public void setPricePaid(BigDecimal pricePaid) {
        this.pricePaid = pricePaid;
    }

    public BigDecimal getBalance() {
        return balance;
    }

    public void setBalance(BigDecimal balance) {
        this.balance = balance;
    }

    @Override
    public String toString() {
        return "RewardBill{" +
                "id = " + id +
                ", createTime = " + createTime +
                ", updateTime = " + updateTime +
                ", tcWaybillNo = " + tcWaybillNo +
                ", type = " + type +
                ", rewardType = " + rewardType +
                ", pricePaid = " + pricePaid +
                "}";
    }
}
